import { Types } from 'mongoose';
import { Gender } from '../enums';

export interface IResponseBase {
  message: string;
  success: boolean | 'ok';
}

export interface IResponse<T> extends IResponseBase {
  data: T;
  code: number;
}

export interface ILoginInfo {
  username: string;
  password: string;
}

export interface IUserInfo extends Partial<ILoginInfo> {
  _id?: Types.ObjectId;
  userId?: number;
  realname?: string;
  email?: string;
  mobile?: string;
  avatar?: string;
  gender?: Gender;
  roleIds?: string[];
}
